<g:hiddenField name="id" />
<div class="fieldcontain ">
	<label for="name">
		<g:message code="requestmap.name.label" default="名称" />
		
	</label>
	<g:textField name="name" required="true" class="easyui-validatebox inputtext"/>
</div>

<div class="fieldcontain ">
    <label for="parentName">
        <g:message code="requestmap.parentname.label" default="所属模块" />

    </label>

    <g:textField name="parentId" class="inputtext easyui-combotree" url="${createLink(action: 'listMenu',controller: 'requestmap')}" style="width:200px;"/>
</div>

<div class="fieldcontain ">
	<label for="url">
		<g:message code="requestmap.url.label" default="授权Url" />
	</label>
	<g:textField name="url" required="true" class="easyui-validatebox inputtext"/>
</div>

<div class="fieldcontain ">
	<label for="configAttribute">
		<g:message code="requestmap.configAttribute.label" default="授权角色" />
	</label>
	<g:each in="${com.okaysoft.ofb.account.Role.list()}" var="role">
           <g:checkBox value="${role.authority}" name="configAttribute"/>${role.name}&nbsp;
	</g:each>
    <g:each in="${com.okaysoft.ofb.account.Role.DEFAULT_ROLE}" var="role">
        <g:checkBox value="${role.authority}" name="configAttribute"/>${role.name}&nbsp;
    </g:each>
</div>

<div class="fieldcontain ">
	<label for="link">
		<g:message code="requestmap.link.label" default="链接" />
		
	</label>
	<g:textField name="link" required="true" class="easyui-validatebox inputtext"/>
</div>

<div class="fieldcontain">
	<label for="menuEnabled">
		<g:message code="requestmap.menuEnabled.label" default="菜单显示" />
		
	</label>
	<g:checkBox name="menuEnabled" />
</div>

%{--<div class="fieldcontain">
	<label for="module">
		<g:message code="requestmap.module.label" default="所属模块" />
	</label>
	<g:select name="moduleId" from="${com.okaysoft.ofb.account.Module.list()}" optionKey="id" optionValue="name" />
</div>--}%
%{--
<div class="fieldcontain">
	<label for="orderNumber">
		<g:message code="requestmap.orderNumber.label" default="Order Number" />
	</label>
	<g:field type="number" name="orderNumber" required="true" value="${fieldValue(bean: requestmapInstance, field: 'orderNumber')}"/>
</div>--}%

